package com.dhcc.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.dhcc.entity.TbAccount;
import com.dhcc.mapper.TbAccountMapper;
import com.mybatisflex.core.query.QueryWrapper;

@RestController
@RequestMapping("/test")
public class TbAccountController {

	 @Autowired
	 private TbAccountMapper accountMapper;
	 
	 @GetMapping("/t1")
	 public void test() {
		 QueryWrapper queryWrapper = QueryWrapper.create()
	                .select();
	                //.where(TbAccountDomain.AGE.eq(18));
	        TbAccount account = accountMapper.selectOneByQuery(queryWrapper);
	        System.out.println(account);
	 }
}
